'use strict';

// const { Controller } = require("egg");
const jwtErr = require("./middleware/jwtErr");

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // router.post('/api/v1/users/login',controller.v1.users.login);//登录
  router.resources('users', '/api/v1/users',jwtErr, controller.v1.users);
};
